﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaHan.WorkTicket.Domain
{
    public partial class Style : BaseEntity
    {
        [Key]
        public System.Guid StyleID { get; set; }

        [Required]
        [MaxLength(20)]
        [DisplayName("款号")]
        public string StyleNo { get; set; }

        [Required]
        [MaxLength(20)]
        [DisplayName("款式名称")]
        public string Name { get; set; }


        [DisplayName("款式描述")]
        [MaxLength(200)]
        public string Description { get; set; }

        [NotMapped]
        public string CategroyName
        {
            get
            {
                return this.StyleCategory.Name;
            }
        }

         [DisplayName("款式分类")]
        public System.Guid StyleCategoryID { get; set; }

        public virtual StyleCategory StyleCategory { get; set; }

    }
}
